/**
 *  定义各个API的 baseURL
 */
const common = {
}

const baseURL = {
  /** 生产 */ 
  production: {
    ...common,
    host: 'http://api.zk2020.com/api/v2',
    redirect_uri: 'http://www.zk2020.com/#/wechatlogin',
    login_uri: 'http://www.zk2020.comn/#/wechatlogin',
  },
  /** 测试 */ 
  sit: {
    ...common,
    host: 'http://gas-api.golang365.com/api/v2',
    redirect_uri: 'http://gas.golang365.com/#/wechatlogin',
    login_uri: 'http://gas.golang365.com/#/login'
  },
  /** 开发 */
  development: {
    ...common,
    host: 'http://localhost:7788/api/v2',
    redirect_uri: 'http://gas.golang365.com/#/wechatlogin',
    login_uri: 'http://gas.golang365.com/#/login',
  }
}[process.env.NODE_ENV]

export default baseURL;
